<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <title>Title</title>
</head>
<body>
<c:set var="salary" scope="session" value="${2000*2}"/>
<c:if test="${salary > 2000}">
<p>我的工资为: <c:out value="${salary}"/><p>
  </c:if>

      <br>
    <c:set var="age" scope="session" value="${16}"/>
      <c:if test="${age > 18}">
       <p>成年了: <c:out value="${age}"/><p>
    </c:if>
        <c:if test="${age < 18}">
        <p>未成年: <c:out value="${age}"/><p>
    </c:if>
</body>
</html>
